package com.example.store.service;

import com.example.store.entity.User;
import com.example.store.service.ex.*;

public interface IUserService {
    void reg(User user)
            throws Exception;

    //登录
    User login(String username, String password) throws UserNotFoundException, PasswordNotMatchException;
    void changePassword(Integer uid, String username, String oldPassword, String newPassword) throws UserNotFoundException, PasswordNotMatchException, UpdateException;
    void changeInfo(User user) throws UserNotFoundException, UpdateException;
    User getByUid(Integer uid);
    void changeAvatar(Integer uid, String avatar)
            throws Exception;

}
